<?php
/*
 *      controller.php 
 */
defined('_JEXEC') or die();
jimport('joomla.application.component.controller');
include_once(JPATH_COMPONENT.DS.'views'.DS.'autartijobmodal'.DS.'view.html.php');
/**
 * Jobs Component Controller
 */
class AutartiJobsController extends JController
{
	function display()
	{	
		 $model = $this->getModel('autartijobcountries');
 		 $countries=$model->getData();
  		 JRequest::setVar( 'countries', $countries );  
		parent::display();
	}
	
	function modalview()
	{
	   JRequest::setVar('tmpl', 'component'); //force the component template
	         
	   $model = $this->getModel('autartijobs');
	
	   $view = new AutartiJobsViewAutartiJobModal( );
	   $view->setModel( $model, true );
	   $view->display();
	}
	
}
?>

